﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp3
{
    class animal
    {
        private string eat;
        private string name;

        public animal(string name)
        {
            this.name = name;
        }

        public string Name { get => name; set => name = value; }
        public string Eat { get => eat; set => eat = value; }
        public void Iseat(string name)
        {
            this.name = name;
            Console.WriteLine("{0}会吃",this.name);
        }
    }
}
